# -*- coding:utf-8 -*-
from django_filters import filters
from django_filters.filterset import FilterSet

from ..models.description import Description


class DescriptionFilter(FilterSet):
    title = filters.CharFilter(field_name='title', lookup_expr='contains')
    keywords = filters.CharFilter(field_name='keywords', lookup_expr='contains')
    value = filters.CharFilter(field_name='value', lookup_expr='contains')

    class Meta:
        model = Description
        fields = ["title", "keywords", "value"]
